<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>后台日志</title>
</head>
<script src="/jquery/jquery.min.js"></script>
<script src="/utils/TimeUtil.js"></script>
<script src="/utils/HttpUtil.js"></script>
<script>
	function load() {
		openPath();
	}
	var utoken = "";
	function openPath() {
		$.post("/wechat/login", {
			code : getQueryString('code')
		}, function(data, status) {
					console.log("当前目录:" + JSON.stringify(data));
						$("#curPath").text(JSON.stringify(data));
			utoken = data.utoken;
			localStorage.setItem('utoken', utoken)
			$.get("/user/info", {
				utoken : utoken
			}, function(data1, status) {
				console.log("当前目录:" + JSON.stringify(data1));
				$("#curPath2").text(JSON.stringify(data1));
				$("#imageId").attr("src", data1.headUrl);

			});
		});
	}
</script>
<body onload="load()">
	<h1>你已经登录</h1>
	<h2 id="curPath"></h2>
	<h2 id="curPath2"></h2>
	<img id="imageId" src=""></img>
</body>
</html>